<?php
error_reporting(E_ALL ^ E_NOTICE);
define('QY_ROOT', str_replace("\\", '/',dirname(__FILE__).'\\'));
define('APPNAME', 'TOPUSER');
define('VERSION', 'v1.0.0');
define('RELEASE', '20150501');
/*
if (!file_exists(ROOT_PATH . 'data/install.lock') && !file_exists(ROOT_PATH . 'includes/install.lock')
    && !defined('NO_CHECK_INSTALL'))
{
    header("Location: ./install/index.php\n");

    exit;
}
*/
if(get_magic_quotes_gpc())
{
	function stripslashes_deep($value)
	{
		$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
		return $value;
	}
	$_POST = array_map('stripslashes_deep', $_POST);
	$_GET = array_map('stripslashes_deep', $_GET);
	$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}
define('THINK_PATH', QY_ROOT.'qiyao/core/');
define('APP_NAME', 'app');
define('APP_PATH', QY_ROOT.'qiyao/app/');
//模板目录
define('TMPL_PATH', QY_ROOT.'templets/');
//开启调试模式
define('APP_DEBUG', true);

//安全设置
define('BUILD_DIR_SECURE', true);
define('DIR_SECURE_FILENAME', 'index.html');
define('DIR_SECURE_CONTENT', '<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>TopUser会员管理系统</title></head><body>欢迎使用<a href="http://www.719471.net">TopUser会员管理系统</a></body></html>');
//齐耀营销系统
//require(QY_ROOT . '/qiyao/qiyao/inc_constant.php');
require THINK_PATH.'core.php';
?>